<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
		<title>Ebook Store | Login</title>
		
	<!-- Styles -->
		<?php echo css_asset('bootstrap/bootstrap.css');?>
		<?php echo css_asset('bootstrap/bootstrap-responsive.css');?>
		<?php echo css_asset('supr-theme/jquery.ui.supr.css');?>
		<?php echo css_asset('icons.css');?>
		<?php echo css_asset('../plugins/uniform/uniform.default.css');?>
		<?php echo css_asset('main.css');?>
	<!-- End Of Styles -->
	<!-- Favicon and touch icon -->
		<link rel="shortcut icon" href="favicon.ico" />
		<link rel="apple-touch-icon-precomposed" sizes="144x144" href="images/apple-touch-icon-144-precomposed.png" />
		<link rel="apple-touch-icon-precomposed" sizes="114x114" href="images/apple-touch-icon-114-precomposed.png" />
		<link rel="apple-touch-icon-precomposed" sizes="72x72" href="images/apple-touch-icon-72-precomposed.png" />
		<link rel="apple-touch-icon-precomposed" href="images/apple-touch-icon-57-precomposed.png" />
	<!-- Favicon and touch icon -->
	</head>
	<body class="loginPage">
		<?php
		$username = array(
			'name'	=> 'username',
			'id'	=> 'username',
			'class' => 'span12',
			'size'	=> 30,
			'value' => set_value('username')
		);

		$password = array(
			'name'	=> 'password',
			'id'	=> 'password',
			'class'	=> 'span12',
			'size'	=> 30
		);
		$remember = array(
			'name'	=> 'remember',
			'id'	=> 'remember',
			'value'	=> 1,
			'checked'	=> set_value('remember'),
			'class' => 'styled'
		);

		$confirmation_code = array(
			'name'	=> 'captcha',
			'id'	=> 'captcha',
			'maxlength'	=> 8
		);
		$submit_login = array(
			'class' => 'btn btn-info right',
			'id' => 'loginBtn'
		);
		?>
		<div class="container-fluid">

			<div id="header">

				<div class="row-fluid">

					<div class="navbar">
						<div class="navbar-inner">
						  <div class="container">
								<a class="brand" href="dashboard.html">EbookStore</a>
						  </div>
						</div><!-- /navbar-inner -->
					  </div><!-- /navbar -->
					

				</div><!-- End .row-fluid -->

			</div><!-- End #header -->

		</div><!-- End .container-fluid -->    

		<div class="container-fluid">
			<div class="loginContainer">
				<?php 
					$attribut_formlogin = array('class'=>'form-horizontal','id'=>'loginForm');
					//echo form_open($this->uri->uri_string()); uri->uri_string => mendapatkan string setelah index.php/
					echo form_open($this->uri->uri_string(),$attribut_formlogin);
				?>
					<div class="form-row row-fluid">
						<div class="span12">
							<div class="row-fluid">
								<?php echo $auth_message; ?>
								<label class="form-label span12" for="username">
									Username:
									<span class="icon16 icomoon-icon-user-2 right gray marginR10"></span>
								</label>
								<?php echo form_input($username); ?>
								<?php echo form_error($username['name']); ?>
							</div>
						</div>
					</div>
					<div class="form-row row-fluid">
						<div class="span12">
							<div class="row-fluid">
								<label class="form-label span12" for="password">
									Password:
									<span class="icon16 icomoon-icon-locked right gray marginR10"></span>
									<!--<span class="forgot"><?php echo anchor($this->dx_auth->forgot_password_uri, 'Forgot password');?> </span>-->
								</label>
								<?php echo form_password($password); ?>
								<?php echo form_error($password['name']); ?>
							</div>
						</div>
					</div>
					<div class="form-row row-fluid">                       
						<div class="span12">
							<div class="row-fluid">
								<div class="form-actions">
								<div class="span12 controls">
									<div class="checker"></div>
									<?php echo form_checkbox($remember);?> Remember Me
									<button type="submit" class="btn btn-info right" id="loginBtn"><span class="icon16 icomoon-icon-enter white"></span> Login</button>
								</div>
								</div>
							</div>
						</div> 
					</div>
				<?php echo form_close()?>
			</div>
		</div>
			<!-- Script -->
		<?php echo js_asset('jquery.min.js');?>
		<?php echo js_asset('bootstrap.js');?>
		<?php echo js_asset('../plugins/touch-punch/jquery.ui.touch-punch.min.js');?>
		<?php echo js_asset('../plugins/ios-fix/ios-orientationchange-fix.js');?>
		<?php echo js_asset('../plugins/validate/jquery.validate.min.js');?>
		<?php echo js_asset('../plugins/uniform/jquery.uniform.min.js');?>
		<script type="text/javascript">
        // document ready function
        $(document).ready(function() {
            $("input, textarea, select").not('.nostyle').uniform();
        });
    </script>
	<!-- End Of Script -->
	</body>
</html>  